package main

import (
	"gitee.com/micro-plat/codeless/apiserver/meta/services/dict"
	"gitee.com/micro-plat/codeless/apiserver/meta/services/form"
	"gitee.com/micro-plat/codeless/apiserver/meta/services/menu"
	"gitee.com/micro-plat/codeless/apiserver/meta/services/meta"
	"gitee.com/micro-plat/codeless/apiserver/meta/services/user"
	"github.com/micro-plat/hydra"
)

func init() {
	hydra.S.Micro("/meta/conf/get", meta.GetConfHandle)
	hydra.S.Micro("/meta/table/add", meta.AddMetaTableHandle)
	hydra.S.Micro("/meta/table/all", meta.GetTablesHandle)
	hydra.S.Micro("/meta/table/update", meta.UpdateMetaTableHandle)
	hydra.S.Micro("/meta/table/query", meta.GetTablesHandle)
	hydra.S.Micro("/meta/column/add", meta.AddColumnHandle)
	hydra.S.Micro("/meta/column/update", meta.UpdateColumnHandle)
	hydra.S.Micro("/meta/page/set", meta.SetPageHandle)
	hydra.S.Micro("/meta/page/query", meta.GetPageByNameHandle)
	hydra.S.Micro("/meta/dict/query", dict.QueryAllDicsHandle)
	hydra.S.Micro("/meta/dict/add", dict.AddDicHandle)
	hydra.S.Micro("/meta/dict/del", dict.DeleteDicHandle)
	hydra.S.Micro("/user/login", user.LoginHandle)
	hydra.S.Micro("/menu/all/get", menu.GetAllMenusHandle)
	hydra.S.Micro("/menu/save", menu.AddMenuHandle)
	hydra.S.Micro("/menu/update", menu.UpdateMenuHandle)
	hydra.S.Micro("/menu/delete", menu.DeleteMenuHandle)
	hydra.S.Micro("/biz/form/query", form.SearchHandle)
	hydra.S.Micro("/biz/form/add", form.InsertHandle)
	hydra.S.Micro("/biz/form/update", form.UpdateHandle)
	hydra.S.Micro("/biz/form/names", form.NamesHandle)
}
